﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Contract.ServiceContracts;
using Service.ServiceInstances;

namespace SelfHost.InProcessConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            ITestData proxy1 = InProcFactory.CreateInstance<TestDataClass, ITestData>();

            Console.WriteLine(proxy1.Test());

            InProcFactory.CloseProxy<ITestData>(proxy1);

            try { proxy1.Test(); }
            catch { }


            Console.ReadLine();
        }
    }
}
